package org.artifact.core;

import java.io.File;
import java.util.Date;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import org.artifact.core.util.ProtoUtil;

/**
 * Hello world!
 *
 */
public class App 
{
	/** proto文件路径 */
	static final String INPUT_PATH = System.getProperty("user.dir") + File.separator + "proto";

	/** 生成的java文件路径 */
	static final String OUTPUT_PATH = System.getProperty("user.dir") + File.separator + "src/main/java";

	/** protoc.exe 路径 */
	static final String EXE_FILE = System.getProperty("user.dir") + File.separator + "proto/protoc.exe";
	
    public static void main( String[] args )
    {
//    	ProtoUtil.builder().inputPath(INPUT_PATH).outputPath(OUTPUT_PATH).exeFile(EXE_FILE).build().exec();

//		System.out.println(DateUtil.betweenDay(DateUtil.offsetWeek(new Date(),2)));
//		System.out.println(DateUtil.betweenDay(new Date(),DateUtil.offsetWeek(new Date(),2),true));
//		System.out.println(DateUtil.format(DateUtil.offsetWeek(DateUtil.offsetDay(new Date(),-1),2),"yyyy-MM-dd 00:00:00"));
//		String end = DateUtil.format(DateUtil.offsetWeek(DateUtil.offsetDay(new Date(),-1),2),"yyyy-MM-dd 00:00:00");
//		System.out.println(DateUtil.parse(end));
//		System.out.println(DateUtil.offsetDay(new Date(), 1));
//		String end = DateUtil.format(DateUtil.offsetWeek(DateUtil.offsetDay(new Date(),0),2),"yyyy-MM-dd 00:00:00");
//		System.out.println(end);

		System.out.println(DateUtil.dayOfWeek(new Date()));
    }
}
